package com.flyco.dialog.utils;

import android.content.Context;
import android.content.res.Resources;
import android.os.Build;
import android.os.Build.VERSION;
import android.text.TextUtils;
import android.util.Log;

public class StatusBarUtils
{
  public static int getHeight(Context paramContext)
  {
    int i = paramContext.getResources().getIdentifier("status_bar_height", "dimen", "android");
    int j = 0;
    if (i > 0)
      j = paramContext.getResources().getDimensionPixelSize(i);
    Log.d(StatusBarUtils.class.getSimpleName(), "statusBarHeight--->" + j);
    if (isFlymeOs4x())
      j *= 2;
    return j;
  }

  public static boolean isFlymeOs4x()
  {
    if ("4.4.4".equals(Build.VERSION.RELEASE))
    {
      String str1 = Build.VERSION.INCREMENTAL;
      String str2 = Build.DISPLAY;
      if (!TextUtils.isEmpty(str1))
        return str1.contains("Flyme_OS_4");
      return str2.contains("Flyme OS 4");
    }
    return false;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.flyco.dialog.utils.StatusBarUtils
 * JD-Core Version:    0.6.2
 */